package cn.com.generaldata.os.ws.impl;

import java.util.List;

import cn.com.generaldata.os.newpojo.ReportType;
import cn.com.generaldata.os.service.common.ReportTypeService;
import cn.com.generaldata.os.ws.intf.ReportTypeWSInterface;

public class ReportTypeWS implements ReportTypeWSInterface {

	private ReportTypeService reportTypeService;

	public void setReportTypeService(ReportTypeService reportTypeService) {
		this.reportTypeService = reportTypeService;
	}

	@Override
	public List<ReportType> getReportTypeList(String versionId) {
		return reportTypeService.getReportTypeList(versionId);
	}

	@Override
	public void addReportType(ReportType newType) {
		reportTypeService.addReportType(newType);
	}

	@Override
	public void updateReportType(ReportType targetType) {
		reportTypeService.updateReportType(targetType);
	}

	@Override
	public void deleteReportType(ReportType targetType) {
		reportTypeService.deleteReportType(targetType);
	}

	@Override
	public boolean isTypeCodeExist(String versionId, String typeCode) {
		return reportTypeService.isTypeCodeExist(versionId, typeCode);
	}

	@Override
	public boolean isItemKeyExist(String versionId, String itemKey) {
		return reportTypeService.isItemKeyExist(versionId, itemKey);
	}

	@Override
	public List<ReportType> getReportTypeListByVerAndInd(String versionId, String industryId) {
		return reportTypeService.getReportTypeListByVerAndInd(versionId, industryId);
	}

	@Override
	public void saveIndLinkedReportType(String versionId, String industryId, String typeIdJoinStr) {
		reportTypeService.saveIndLinkedReportType(versionId, industryId, typeIdJoinStr);
	}

	@Override
	public String uploadReportTypeFile(String versionId, String fileName, byte[] fileData, boolean autoCreateItemFlag) {
		return reportTypeService.uploadReportTypeFile(versionId, fileName, fileData, autoCreateItemFlag);
	}

	@Override
	public void importReportType(String versionId, String typeIdJoinStr) {
		reportTypeService.importReportType(versionId, typeIdJoinStr);
	}
}